package old_go_learn

import "fmt"

type Person1 struct {
	name string
	sex  string
	age  int
}

func (p Person1) SetInfoValue() {
	fmt.Printf("SetInfoValue:%p,%v", &p, p)
}

func (p *Person1) SetInfoPointer() {
	fmt.Printf("SetInfoPointer:%p,%v\n", p, &p)
}

func main() {
	s := Person1{"mike", "男", 18}

	fmt.Printf("main %p,%v\n", &s, s)

	s.SetInfoPointer()

	sFunc := s.SetInfoPointer

	sFunc()
}
